-- GENERATED SPELL FOR [Shadowsworn Cultist] --


function spell0_6004(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6004', 500, 1)
end

function Sorts_6004(pUnit, Event)
local choix_sorts_6004 = math.random(0, 0)
if choix_sorts_6004 == 0 then
pUnit:RegisterEvent('spell0_6004', 1, 1)
end
end

function mob6004_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6004', math.random(1500, 3000), 1)
end

function mob6004_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6004_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6004_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6004, 1, 'mob6004_Action')
RegisterUnitEvent(6004, 2, 'mob6004_Leave')
RegisterUnitEvent(6004, 3, 'mob6004_Kill')
RegisterUnitEvent(6004, 4, 'mob6004_Die')
